-- GENERATED SPELL FOR [Bael'dun Excavator] --


function spell0_3374(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_3374', 613, 1)
end

function spell1_3374(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(7386,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3374', 629, 1)
end

function Sorts_3374(pUnit, Event)
local choix_sorts_3374 = math.random(0, 1)
if choix_sorts_3374 == 0 then
pUnit:RegisterEvent('spell0_3374', 1, 1)
end
if choix_sorts_3374 == 1 then
pUnit:RegisterEvent('spell1_3374', 1, 1)
end
end

function mob3374_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3374', math.random(1500, 3000), 1)
end

function mob3374_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3374_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3374_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3374, 1, 'mob3374_Action')
RegisterUnitEvent(3374, 2, 'mob3374_Leave')
RegisterUnitEvent(3374, 3, 'mob3374_Kill')
RegisterUnitEvent(3374, 4, 'mob3374_Die')
